//
//  AXFMyAddressModel.m
//  AIXF
//
//  Created by zhanghui on 2017/7/10.
//  Copyright © 2017年 Macx. All rights reserved.
//

#import "AXFMyAddressModel.h"

@implementation AXFMyAddressModel


//归档
- (void)encodeWithCoder:(NSCoder *)aCoder{
    
    [aCoder encodeObject:self.id forKey:@"id"];
    [aCoder encodeObject:self.accept_name forKey:@"accept_name"];
    [aCoder encodeObject:self.telphone forKey:@"telphone"];
    [aCoder encodeObject:self.province_id forKey:@"province_id"];
    [aCoder encodeObject:self.province_name forKey:@"province_name"];
    [aCoder encodeObject:self.city_id forKey:@"city_id"];
    [aCoder encodeObject:self.city_name forKey:@"city_name"];
    [aCoder encodeObject:self.address forKey:@"address"];
    [aCoder encodeObject:self.lng_map forKey:@"lng_map"];
    [aCoder encodeObject:self.lat_map forKey:@"lat_map"];
    [aCoder encodeObject:self.addr_for_dealer forKey:@"addr_for_dealer"];
    [aCoder encodeObject:self.gender forKey:@"gender"];
    
    
}

//解档
- (instancetype)initWithCoder:(NSCoder *)aDecoder{
   
    if (self = [super init]) {
        
        self.id = [aDecoder decodeObjectForKey:@"id"];
        self.accept_name = [aDecoder decodeObjectForKey:@"accept_name"];
        self.telphone = [aDecoder decodeObjectForKey:@"telphone"];
        self.province_id = [aDecoder decodeObjectForKey:@"province_id"];
        
        self.province_name = [aDecoder decodeObjectForKey:@"province_name"];
        self.city_id = [aDecoder decodeObjectForKey:@"city_id"];
        self.city_name = [aDecoder decodeObjectForKey:@"city_name"];
        
        self.address = [aDecoder decodeObjectForKey:@"address"];
        self.lng_map = [aDecoder decodeObjectForKey:@"lng_map"];
        self.lat_map = [aDecoder decodeObjectForKey:@"lat_map"];
        self.addr_for_dealer = [aDecoder decodeObjectForKey:@"addr_for_dealer"];
        self.gender = [aDecoder decodeObjectForKey:@"gender"];
        
    }
    
    return self;
    
   
    
}

@end
